package edu.sandau.b230111.b23011125.Model;



import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;


@Entity
@Table(name = "contest")
public class Contest {
    @Id
    private String contestid;
    private String status;
    private Date starttime;
    private Date endtime;
    private String problemlistid;
    private String ranklistid;
    private Integer problemcount;
    private String title;

    public Contest() {
    }

    public Contest(String contestid, String status,   Date starttime, Date endtime,String ranklistid, String problemlistid, Integer problemcount) {
        this.contestid = contestid;
        this.status = status;
        this.starttime = starttime;
        this.endtime = endtime;
        this.ranklistid = ranklistid;
        this.problemlistid = problemlistid;
        this.problemcount = problemcount;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContestid() {
        return contestid;
    }

    public void setContestid(String contestid) {
        this.contestid = contestid;
    }

    public Integer getProblemcount() {
        return problemcount;
    }

    public void setProblemcount(Integer problemcount) {
        this.problemcount = problemcount;
    }

    public String getRanklistid() {
        return ranklistid;
    }

    public void setRanklistid(String ranklistid) {
        this.ranklistid = ranklistid;
    }

    public String getProblemlistid() {
        return problemlistid;
    }

    public void setProblemlistid(String problemlistid) {
        this.problemlistid = problemlistid;
    }

    public Date getEndtime() {
        return endtime;
    }

    public void setEndtime(Date endtime) {
        this.endtime = endtime;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Date getStarttime() {
        return starttime;
    }

    public void setStarttime(Date starttime) {
        this.starttime = starttime;
    }
}
